/**
 * 
 */
package com.cnhaimei.vod.net.dc.state;

import com.cnhaimei.vod.net.dc.DCStateData;

/**
 * 气氛选项，取值0~3
 * 
 * @author jin001.wu@gmail.com <br>
 * @date 2011-7-15
 * 
 */
public class MoodState extends DCStateData {
	public static final int MIN_VOLUME = -2;
	public static final int MAX_VOLUME = 2;

	public MoodState() {
		super(STATE.EVOD_MOOD_STATE);
	}

	public void setState(int state) {
		value = state;
	}

	public int getState() {
		return value;
	}

	public static boolean isAvalibe(int state) {
		return (state >= MIN_VOLUME && state <= MAX_VOLUME);
	}

}
